<include file="public/min-header"/>
<link href="__PUBLIC__/plugins/daterangepicker/daterangepicker-bs3.css" rel="stylesheet" type="text/css" />
<script src="__PUBLIC__/plugins/daterangepicker/moment.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/plugins/daterangepicker/daterangepicker.js" type="text/javascript"></script>

<div class="wrapper">
    <include file="public/breadcrumb"/>
    <section class="content ">
        <!-- Main content -->
        <div class="container-fluid">

            <div class="panel panel-default">
                <div class="panel-body ">
                    <!--表单数据-->
                    <form method="post" id="handle_shop">

                        <!--通用信息-->
                        <div class="tab-content col-md-10">
                            <div class="tab-pane active" id="tab_tongyong">
                                <table class="table table-bordered">
                                    <tbody>

                                    <tr>
                                        <td class="col-sm-2">角色：</td>
                                        <td class="col-sm-8">
                                            <select name="role" class="form-control">
                                                <option value="0" <if condition="$data.role == 0"> selected </if>>会员</option>
                                                <option value="1" <if condition="$data.role == 1"> selected </if>>管理员</option>
                                                <option value="2" <if condition="$data.role == 2"> selected </if>>销售</option>
                                            </select>
                                        </td>
                                    </tr>

                                    </tbody>
                                    <tfoot>
                                    <tr>
                                        <td>
                                            <input type="hidden" name="userId" value="{$userId}">
                                        </td>
                                        <td class="text-right"><input class="btn btn-primary" type="button" onclick="shop_submit()" value="保存"></td>
                                    </tr>
                                    </tfoot>
                                </table>
                            </div>
                        </div>
                    </form><!--表单数据-->
                </div>
            </div>
        </div>
    </section>
</div>

<script>
    function shop_submit(){
        ajax_form_submit("handle_shop", "{:url('user/doBindRoleAdd')}");
    }
</script>
</body>
</html>